package io.renren.modules.job.task.basedata;

import io.renren.modules.basedata.service.UserCardService;
import io.renren.modules.job.task.ITask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("userCardTask")
public class UserCardTask implements ITask {
    private static final Logger log = LoggerFactory.getLogger(UserCardTask.class);
    @Autowired
    private UserCardService userCardService;
    @Override
    public void run(String params) {
        try {
            log.info(userCardService.cardUpload());
        }catch (Exception e){
            log.error(e.getMessage());
        }finally {

        }
    }
}
